{{useCss "/app-pages/css/user/order.scss"}}
<div class="mainbox">
    {{#each $Cache.user.order.achs}}
        <div class="orderitem">
            <href to="/pay.html?ach_id={{_id}}">
                <div class="orderinfo">
                    <div class="item">
                        订单：{{_id+" ("+info.bus_id}})
                    </div>
                    <div class="item">
                        下单时间：{{#Time create_time,"YYYY-MM-DD HH:mm:ss"}}
                    </div>
                    <div class="item">
                        总花费额：{{#Fixed finally_cash}}
                    </div>
                </div>
            </href>
            <div class="ordergoods">
                {{#each info.goods_info}}
                <div class="item">
                    <div class="img">
                        <href to="/goods_details.html?id={{goods._id}}">
                            <img bind-src="{{goods.preview_img_url}}?imageView/1/w/40/h/40">
                        </href>
                    </div>
                    <div class="info">
                        <div>
                            {{goods.goods_name}}
                        </div>
                        <div>
                            单价：{{#Fixed goods.cash}}　　数量：{{num}}
                        </div>
                    </div>
                </div>
                {{/each}}
            </div>
            <div class="orderinfo">
                <div class="item">
                    <!-- 状态： -->
                    {{#> "user_ach_controller"}}
                </div>
            </div>
        </div>
    {{/each}}
    <button class='btn' disabled="{{$Cache.user.order.ismore&&'disabled'}}" event-click="{{'$Event.user.order.get_more_order'}}">
        {{#if $Cache.user.order.isloading}}正在加载{{#else}}{{$Cache.user.order.ismore&&'没有了哦'||'查看更多'}}{{/if}}
    </button>
</div>